package com.gwtplatform.samples.tab.client.infopopup;

import com.guit.client.GuitPresenter;
import com.guit.client.StandaloneView;
import com.guit.client.binder.GuitBinder;
import com.guit.client.binder.ViewField;
import com.gwtplatform.samples.tab.client.infopopup.InfoPopupPresenter.InfoPopupBinder;

@StandaloneView
public class InfoPopupPresenter extends GuitPresenter<InfoPopupBinder> {

    public static interface InfoPopupBinder extends GuitBinder<InfoPopupPresenter> {
    }
    
    @ViewField
    PopupPanelI popup;
    
    public void show(int x, int y) {
        getView();
        popup.setPopupPosition(x, y);
        popup.show();
    }
}
